package joshua.hibernate.mapping;

import joshua.web.facade.ILogicFacade;
import joshua.web.facade.LogicFacadeImpl;

import org.springframework.context.support.GenericXmlApplicationContext;


public class SimpleBeanFactory {

	
	public static void main(String[] args){
		GenericXmlApplicationContext appCxt = new GenericXmlApplicationContext();
		appCxt.load("classpath:app-context-xml.xml");
		appCxt.refresh();
		ILogicFacade lf = appCxt.getBean("logicFacade", ILogicFacade.class); 
		//ILogicFacade lf = appCxt.getBean("logicFacade", LogicFacadeImpl.class); 
		System.out.println(lf);
	}
	
}
